package com.trust.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.trust.entity.InventoryRecord;

import java.util.List;

public interface InventoryRecordService extends IService<InventoryRecord> {
    /**
     * 获取
     * @param code
     * @return
     */
    List<InventoryRecord> getByCode(String code);

    /**
     * 获取
     * @param type
     * @param id
     * @return
     */
    InventoryRecord getByTypeAndParentId(Integer type, Integer id);

    /**
     * 删除
     * @param parentId
     */
    void removeByParentId(Integer parentId);
}
